package com.dongnao.andfix;

import android.os.Environment;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;

import java.io.File;
import java.lang.reflect.Method;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);


    }

    public void test(View view) {
        Caclutor caclutor = new Caclutor();
        caclutor.test(this);

    }

    public void fix(View view) {
        DexManager dexManager = new DexManager();
        dexManager.setContext(this);
        dexManager.load(new File(Environment.getExternalStorageDirectory(), "out.dex"));
    }
}
